package com.zyong.design.pattern.observer.case3;

/**
 * @program: zyong-design-pattern
 * @ClassName: Client
 * @author: zyong
 * @create: 2024-05-15 00:23
 */
public class Client {
    public static void main(String[] args) {
        Thief thief = new Thief("小偷");
        Policemen policemen = new Policemen("警察");

        thief.addObserver(policemen);

        thief.steal();
    }
}
